package com.infore.dataReceiving.core.enums;

/**
 * 指令正则表达式枚举
 * @author 69457
 *
 */
public enum Water2018InstructionsRegularExpressionEnum {
	Water2018_Instructions("Instructions","^##(\\d{4})"
			+ "(QN=(\\d{17})"
			+ ";ST=(\\d{2})"
			+ ";CN=(\\d{4})"
			+ ";PW=(\\w{6,8})"
			+ ";MN=(\\w{3,15})"
			+ ";Flag=(\\d{1})"
			+ "(;PNUM=(\\d{1,5}))?"
			+ "(;PNO=(\\d{1,5}))?"
			+ ";CP=&&"
			+ "(DataTime=(\\d{14});?(.*)|BeginTime=(\\d{14})EndTime=(\\d{14})|QnRtn=(\\d{1,2})|ExeRtn=(\\d{1,2}))?"
			+ "&&)"
			+ "(\\w{4})\\r\\n$"),
	Water2018_Instructions_Flag("Instructions_Flag",",(\\w+)-Flag=(\\w+),"),
	Water2018_Instructions_Rtd("Instructions_Rtd",",\\w+-Rtd=([-|\\w|.]+),"),
	Water2018_Instructions_Avg("Instructions_Avg",",\\w+-Avg=([-|\\w|.]+),"),
	Water2018_Instructions_Check("Instructions_Check",",\\w+-Check=([-|\\w|.]+),"),
	Water2018_Instructions_StandardValue("Instructions_StandardValue",",\\w+-StandardValue=([-|\\w|.]+),"),
	Water2018_Instructions_WaterTime("Instructions_WaterTime",",\\w+-WaterTime=([\\w|.]+),"),
	Water2018_Instructions_Water("Instructions_Water",",\\w+-Water=([-|\\w|.]+),"),
	Water2018_Instructions_Chroma("Instructions_Chroma",",\\w+-Chroma=([-|\\w|.]+),"),
	Water2018_Instructions_Volume("Instructions_Volume",",\\w+-Volume=([-|\\w|.]+),"),
	Water2018_Instructions_DVolume("Instructions_DVolume",",\\w+-DVolume=([-|\\w|.]+),"),
	Water2018_Instructions_SpanValue("Instructions_SpanValue",",\\w+-SpanValue=([-|\\w|.]+),"),
	Water2018_Instructions_PolId("Instructions_PolId","PolId=(\\w+),"),
	Water2018_Instructions_EquipmentInfo("Instructions_EquipmentInfo","(i\\d{5})-Info=(//(.+)//|([\\d|.]*)),");
	
	Water2018InstructionsRegularExpressionEnum(String key,String parrtern){
		this.key = key;
		this.parrtern = parrtern;
	}
	
	private String key;
	private String parrtern;
	
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getParrtern() {
		return parrtern;
	}
	public void setParrtern(String parrtern) {
		this.parrtern = parrtern;
	}

}
